﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Ebada.UI.Base;
using Ebada.Client.Platform;

namespace Ebada.Modules.Vehicle
{
    public partial class frmVehicleActivity : FormBase
    {
        public frmVehicleActivity()
        {
            InitializeComponent();
        }
        public void ShowBX()
        {
            ucVehicleActivity1.OperType = "1";
            this.Text = "保险登记";
            this.MdiParent = MainHelper.MainForm;
            this.Show();
        }
        public void ShowBXWarning()
        {
            this.Text = "保险预警";
            this.MdiParent = MainHelper.MainForm;
            this.Show();
            ucVehicleActivity1.Warning = "1";
            ucVehicleActivity1.OperType = "1";
            ucVehicleActivity1.hidebutton();
        }
        public void ShowNS()
        {
            this.Text = "年审登记";
            this.MdiParent = MainHelper.MainForm;
            this.Show();
            ucVehicleActivity1.OperType = "2";
        }
        public void ShowNSWarning()
        {
            this.Text = "年审预警";
            this.MdiParent = MainHelper.MainForm;
            this.Show();
            ucVehicleActivity1.Warning = "1";
            ucVehicleActivity1.OperType = "2";
            ucVehicleActivity1.hidebutton();
        }
        public void ShowYL()
        {
            this.Text = "养路费登记";
            this.MdiParent = MainHelper.MainForm;
            this.Show();
            ucVehicleActivity1.OperType = "3";
        }
        public void ShowYLWarning()
        {
            this.Text = "养路费预警";
            this.MdiParent = MainHelper.MainForm;
            this.Show();
            ucVehicleActivity1.Warning = "1";
            ucVehicleActivity1.OperType = "3";
            ucVehicleActivity1.hidebutton();
        }
        public void ShowRW()
        {
            this.Text = "二维登记";
            this.MdiParent = MainHelper.MainForm;
            this.Show();
            ucVehicleActivity1.OperType = "4";
        }
        public void ShowRWWarning()
        {
            this.Text = "二维预警";
            this.MdiParent = MainHelper.MainForm;
            this.Show();
            ucVehicleActivity1.Warning = "1";
            ucVehicleActivity1.OperType = "4";
            ucVehicleActivity1.hidebutton();
        }
        public void ShowXC()
        {
           
            this.Text = "洗车登记";
            this.MdiParent = MainHelper.MainForm;
            this.Show();
            ucVehicleActivity1.OperType = "5";
        }
        public void ShowGL()
        {
            
            this.Text = "过路登记";
            this.MdiParent = MainHelper.MainForm;
            this.Show();
            ucVehicleActivity1.OperType = "6";
        }
        public void ShowPK()
        {
            
            this.Text = "蓬靠登记";
            this.MdiParent = MainHelper.MainForm;
            this.Show();
            ucVehicleActivity1.OperType = "7";
        }
    }
}
